package Java语言.数据结构.树.SearchTree;

import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;

/*　　懒得写了*/
public class Main {
    Node rootNode;
    public static void main(String[] args) throws UnsupportedEncodingException {
        Integer[] values=new Integer[]{1,3,5,4,2};
        for(int i=0;i<values.length;i++) {
            String s = new String("xyz");
            String s1 = "你好";
            String s2 = new String(s1.getBytes("GB2312"), StandardCharsets.ISO_8859_1);

        }
    }
    public void printTree(){

    }
    public void insert(Integer value){
        Node tempNode=rootNode;
        if(value>tempNode.value)
            tempNode=tempNode.right;
        else tempNode=tempNode.left;
        if(tempNode==null)

    ;}
    class Node{
        Node left,right;
        Integer value;
    }
}
